package com.alibaba.cloud.authorization.api.feign;

import com.alibaba.cloud.authorization.constant.AuthConstant;
import com.alibaba.cloud.authorization.entity.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = AuthConstant.ALICLOUD_BASE)
public interface UserServiceFeign {

    @GetMapping("/get/{username}")
    LoginUser getLoginUser(@PathVariable("username") String username);
}
